TARGETS= var_args_template constexpr_test buffer_test basic_string_view format_arg_store formatter
all: $(TARGETS)

CPPFLAGS = -std=c++11 -g
LIBS = -lpthread

%.o : %.cpp
	g++ $(CPPFLAGS) -c $< -o $@


var_args_template: var_args_template.o
	g++ $^ -o var_args_template $(LIBS) $(CPPFLAGS)

constexpr_test: constexpr_test.o
	g++ $^ -o constexpr_test $(LIBS) $(CPPFLAGS)

buffer_test: buffer_test.o
	g++ $^ -o buffer_test $(LIBS) $(CPPFLAGS)

basic_string_view: basic_string_view.o
	g++ $^ -o basic_string_view $(LIBS) $(CPPFLAGS)

format_arg_store: format_arg_store.o
	g++ $^ -o format_arg_store $(LIBS) $(CPPFLAGS)

formatter: formatter.o
	g++ $^ -o formatter $(LIBS) $(CPPFLAGS)

.PHONY: clean
clean:
	rm -rf $(TARGETS)